<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/common.jspf"%>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/warehouse/overtimeanalyze_form_edit.js"></script>
<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}

label[class^="btn btn-default"] {
	margin-top: -4px;
}
</style>
<script type="text/javascript" src="${ctx}/js/jedate/jedate.js"></script>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		action="${ctx}/overtimeanalyze_form/overtimeanalyze_form_editEntity.shtml">
		<input type="hidden" class="form-control checkacc"
			value="${over.id}" name="overtimeanalyzeFormMap.id" id="id">
		<section class="panel panel-default">
		<div class="panel-body">
			<div class="form-group">
				<label class="col-sm-3 control-label">客户编号</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						value="${over.cid}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">客户名称</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						value="${over.cname}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">物料编码</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						value="${over.material_code}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">产品名称</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						value="${over.oname}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">现有库存量</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						value="${over.restCount}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">最后入库时间</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						value="${over.finalEnterDate}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">超期天数</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						value="${over.storageDay}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">业务员</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						value="${over.username}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">计划员</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						value="${over.pusername}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">超期原因</label>
				<div class="col-sm-9">
					<input type="checkbox" name="overtimeanalyzeFormMap.overtimeReason"
						<c:if test="${fn:contains(over.overtimeReason,'生产做多' )}">checked</c:if> value="生产做多" />生产做多
					<input type="checkbox" name="overtimeanalyzeFormMap.overtimeReason"
						<c:if test="${fn:contains(over.overtimeReason,'计划变动' )}">checked</c:if> value="计划变动" />计划变动
					<input type="checkbox" name="overtimeanalyzeFormMap.overtimeReason"
						<c:if test="${fn:contains(over.overtimeReason,'取消计划' )}">checked</c:if> value="取消计划" />取消计划
					<input type="checkbox" name="overtimeanalyzeFormMap.overtimeReason"
						<c:if test="${fn:contains(over.overtimeReason,'同行出货' )}">checked</c:if> value="同行出货" />同行出货
					<input type="checkbox" name="overtimeanalyzeFormMap.overtimeReason"
						<c:if test="${fn:contains(over.overtimeReason,'不配套' )}">checked</c:if> value="不配套" />不配套
					<input type="checkbox" name="overtimeanalyzeFormMap.overtimeReason"
						<c:if test="${fn:contains(over.overtimeReason,'品质问题' )}">checked</c:if> value="品质问题" />品质问题
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">预计出货时间</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="predictDeliver" readonly
						name="overtimeanalyzeFormMap.predictDeliver" value="${over.predictDeliver}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
		</div>
		<footer class="panel-footer text-right bg-light lter">
		<button type="submit" class="btn btn-success btn-s-xs">提交</button>
		</footer> </section>
	</form>
	<script type="text/javascript">
		jeDate({
			dateCell : "#predictDeliver",
			format : "YYYY-MM-DD hh:mm:ss",
			isinitVal : false,
			isTime : true,
			isClear : false,
			minDate : "2014-09-19 00:00:00"
		});
	</script>
</body>
</html>